home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 051-075 / disk_075 / comm / defines.h < prev    next >
C/C++ Source or Header  |  1992-05-06  |  6KB  |  179 lines

  1. /*    Comm define file */
  2.  
  3. #define MANX
  4. #define INTUITION_REV 33L
  5. #define GRAPHICS_REV  33L
  6.  
  7. #ifndef SCREENQUIET
  8. #define SCREENQUIET 0x0100
  9. #endif
  10.  
  11. #ifdef TRUE
  12. #undef TRUE
  13. #undef FALSE
  14. #endif
  15.  
  16. #define TRUE   1
  17. #define FALSE  0
  18. #define ERROR  (-1)
  19. #define START  TRUE
  20. #define STOP   FALSE
  21. #define ON     TRUE
  22. #define OFF    FALSE
  23.  
  24. /* things for xmodem send and recieve */
  25. #define SECSIZ   0x80
  26. #define TTIME    10        /* number of seconds for timeout */
  27. #define BufSize  SECSIZ*64 /* ASCII capture buffer */
  28. #define ERRORMAX 10        /* Max errors before abort */
  29. #define RETRYMAX 10        /* Maximum retrys before abort */
  30. #define SOH      1         /* Start of sector char */
  31. #define EOT      4         /* end of transmission char */
  32. #define ACK      6         /* acknowledge sector transmission */
  33. #define NAK      21        /* error in transmission detected */
  34. #define PAD      0x1a      /* character to pad short sectors */
  35. #define CAN      24        /* Cancel character -- abort transmission */
  36. #define SYN      22        /* WXMODEM sync character */
  37. #define DLE      16        /* WXMODEM Data Link Escape character */
  38. #define TIMEOUT  -1        /* timeout during receive character */
  39. #define ABORT    -2        /* user aborted XMODEM transfer with escape key */
  40. #define OK       TRUE      /* sector sent OK */
  41. #define XOFF     0x13      /* stop sender */
  42. #define XON      0x11      /* start sender */
  43. #define CSI      0x9B      /* console device escape sequence */
  44.  
  45. /*   defines required for phone library */
  46. #define PHONELIB  "Comm.Phone"          /* file containing library */
  47. #define PHONEDIR  "SYS:"                /* look here if not in default */
  48. #define MAXPHONE  44                    /* max number of numbers in lib */
  49. #define NAMESIZE  17                    /* max name length */
  50. #define NBRSIZE   17                    /* phone number size */
  51. #define BAUDSIZE  9                     /* baud rate size */
  52. #define COMTSIZE  30                    /* comment length */
  53. #define MAXLINE   NAMESIZE + NBRSIZE + BAUDSIZE + COMTSIZE + 2
  54.  
  55. #define NUMBUFS   128           /* number of sectors we'd like in diskbuff */
  56. #define MAXFNAME  80            /* Max file name length */
  57. #define KEYFILE   "Comm.Keys"
  58.  
  59. /* define maximum number of baud rate menu items */
  60. #define RSMAX     6              /* Baud menu */
  61.  
  62. /* RAW key definitions.  Change defines to return values you would like
  63.    to see.  ex.  CUP could return 0x80 for up arrow
  64.                  CDN could return 0x81 for down arrow
  65.    Could also define function keys and shift function keys.
  66.    but easily added into the shift[] array.
  67.  
  68.    Any change to these defines will require keyboard.c to be re-compiled
  69. */
  70. #define KEYMACS   20     /* keyboard macros */
  71.  
  72. #define TOGPRT   0xFE
  73. #define TOGCAP   0xFD
  74. #define TOGSCR   0xFC
  75.  
  76. #ifndef TAB
  77. #define TAB 9           /* Tab           */
  78. #endif
  79.  
  80. #define UND 0           /* Undefined Key */
  81. #define BKS 8           /* Backspace     */
  82. #define ENT 13          /* Enter         */
  83. #define RET 13          /* Return        */
  84. #define ESC 0x1B        /* Escape        */
  85. #define DEL 0x7F        /* Delete        */
  86. #define CUP 0           /* Cursor Up     */
  87. #define CDN 0           /* Cursor Down   */
  88. #define CFW 0           /* Cursor Forward*/
  89. #define CBK 0           /* Cursor Back   */
  90. #define FN1 128         /* Function 1    */
  91. #define FN2 129         /* Function 2    */
  92. #define FN3 130         /* Function 3    */
  93. #define FN4 131         /* Function 4    */
  94. #define FN5 132         /* Function 5    */
  95. #define FN6 133         /* Function 6    */
  96. #define FN7 134         /* Function 7    */
  97. #define FN8 135         /* Function 8    */
  98. #define FN9 136         /* Function 9    */
  99. #define F10 137         /* Function 10   */
  100.                   /* shift function keys */
  101. #define SF1 138         /* Function 1    */
  102. #define SF2 139         /* Function 2    */
  103. #define SF3 140         /* Function 3    */
  104. #define SF4 141         /* Function 4    */
  105. #define SF5 142         /* Function 5    */
  106. #define SF6 143         /* Function 6    */
  107. #define SF7 144         /* Function 7    */
  108. #define SF8 145         /* Function 8    */
  109. #define SF9 146         /* Function 9    */
  110. #define S10 147         /* Function 10   */
  111. #define SHH 148         /* Shift HELP    */
  112. #define HLP 149         /* Help          */
  113.  
  114. #define LSH 0           /* Left Shift    */
  115. #define RSH 0           /* Right Shift   */
  116. #define CAP 0           /* Caps Lock     */
  117. #define CTL 0           /* Control       */
  118. #define LAL 0           /* Left ALT      */
  119. #define RAL 0           /* Right ALT     */
  120. #define LAM 0           /* Left Amiga    */
  121. #define RAM 0           /* Right Amiga   */
  122. #define LMB 0           /* Left Mouse    */
  123. #define RMB 0           /* Right Mouse   */
  124. #define MMB 0           /* Middle Mouse  */
  125. #define APS 0x27        /* Single Quote  */
  126. #define SLH '\\'        /* Back slash    */
  127.  
  128. /* for debug */
  129. #define NOMASK       1
  130. #define SHOWERR      2
  131. #define SHOWHEX      4
  132.  
  133. #define SHOWPROT     0x10
  134.  
  135. /* system colors */
  136. #define BLUE         0
  137. #define WHITE        1
  138. #define BLACK        2
  139. #define ORANGE       3
  140.  
  141. /* requester dimensions */
  142. #define REQWIDTH   260
  143. #define REQHEIGHT   40
  144. #define REQXPOS      1
  145. #define REQYPOS     10
  146.  
  147. /* tx & rx window sizes */
  148. #define WIDTH      640
  149. #define TXHEIGHT    42
  150. #define TXPOSN       0
  151. #define TYPOSN     148
  152.  
  153. #define RXHEIGHT   148
  154. #define RXPOSN       0
  155. #define RYPOSN       0
  156.  
  157. /* menu events */
  158. #define ASCCAPT      1
  159. #define ASCSEND      2
  160. #define XMDRECV      3
  161. #define XMDSEND      4
  162. #define EDITMAC      5
  163. #define LOADPHONE    6
  164. #define LOADKEYS     7
  165. #define SAVEKEYS     8
  166. #define WXMRECV      9
  167.  
  168. #define RSBUFSIZ     128
  169.  
  170. #define PROPSIZE     8
  171.  
  172. #define DOS11        31
  173. #define DOS12        33
  174.  
  175. #define BEEPSIZE    10L
  176. #define BEEP_PERIOD 200L
  177. #define BEEPCYCLES  200L
  178.  
  179.